3.247 \(\int \frac {1}{\tan ^{\frac {7}{3}}(c+d x) (a+i a \tan (c+d x))^2} \, dx\)

Optimal. Leaf size=381 \[ -\frac {91 i \tan ^{-1}\left (\sqrt {3}-2 \sqrt [3]{\tan (c+d x)}\right )}{72 a^2 d}+\frac {91 i \tan ^{-1}\left (2 \sqrt [3]{\tan (c+d x)}+\sqrt {3}\right )}{72 a^2 d}+\frac {91 i \tan ^{-1}\left (\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {25 \tan ^{-1}\left (\frac {1-2 \tan ^{\frac {2}{3}}(c+d x)}{\sqrt {3}}\right )}{6 \sqrt {3} a^2 d}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}-\frac {25 \log \left (\tan ^{\frac {2}{3}}(c+d x)+1\right )}{18 a^2 d}+\frac {91 i \log \left (\tan ^{\frac {2}{3}}(c+d x)-\sqrt {3} \sqrt [3]{\tan (c+d x)}+1\right )}{48 \sqrt {3} a^2 d}-\frac {91 i \log \left (\tan ^{\frac {2}{3}}(c+d x)+\sqrt {3} \sqrt [3]{\tan (c+d x)}+1\right )}{48 \sqrt {3} a^2 d}+\frac {25 \log \left (\tan ^{\frac {4}{3}}(c+d x)-\tan ^{\frac {2}{3}}(c+d x)+1\right )}{36 a^2 d}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2} \]

[Out]

91/72*I*arctan(-3^(1/2)+2*tan(d*x+c)^(1/3))/a^2/d+91/72*I*arctan(3^(1/2)+2*tan(d*x+c)^(1/3))/a^2/d+91/36*I*arc
tan(tan(d*x+c)^(1/3))/a^2/d-25/18*ln(1+tan(d*x+c)^(2/3))/a^2/d+25/36*ln(1-tan(d*x+c)^(2/3)+tan(d*x+c)^(4/3))/a
^2/d+25/18*arctan(1/3*(1-2*tan(d*x+c)^(2/3))*3^(1/2))/a^2/d*3^(1/2)+91/144*I*ln(1-3^(1/2)*tan(d*x+c)^(1/3)+tan
(d*x+c)^(2/3))/a^2/d*3^(1/2)-91/144*I*ln(1+3^(1/2)*tan(d*x+c)^(1/3)+tan(d*x+c)^(2/3))/a^2/d*3^(1/2)-25/12/a^2/
d/tan(d*x+c)^(4/3)+13/12/a^2/d/(1+I*tan(d*x+c))/tan(d*x+c)^(4/3)+91/12*I/a^2/d/tan(d*x+c)^(1/3)+1/4/d/tan(d*x+
c)^(4/3)/(a+I*a*tan(d*x+c))^2

________________________________________________________________________________________

Rubi [A]  time = 0.67, antiderivative size = 381, normalized size of antiderivative = 1.00, number of steps used = 26, number of rules used = 15, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.577, Rules used = {3559, 3596, 3529, 3538, 3476, 329, 275, 200, 31, 634, 618, 204, 628, 295, 203} \[ -\frac {91 i \tan ^{-1}\left (\sqrt {3}-2 \sqrt [3]{\tan (c+d x)}\right )}{72 a^2 d}+\frac {91 i \tan ^{-1}\left (2 \sqrt [3]{\tan (c+d x)}+\sqrt {3}\right )}{72 a^2 d}+\frac {25 \tan ^{-1}\left (\frac {1-2 \tan ^{\frac {2}{3}}(c+d x)}{\sqrt {3}}\right )}{6 \sqrt {3} a^2 d}+\frac {91 i \tan ^{-1}\left (\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}-\frac {25 \log \left (\tan ^{\frac {2}{3}}(c+d x)+1\right )}{18 a^2 d}+\frac {91 i \log \left (\tan ^{\frac {2}{3}}(c+d x)-\sqrt {3} \sqrt [3]{\tan (c+d x)}+1\right )}{48 \sqrt {3} a^2 d}-\frac {91 i \log \left (\tan ^{\frac {2}{3}}(c+d x)+\sqrt {3} \sqrt [3]{\tan (c+d x)}+1\right )}{48 \sqrt {3} a^2 d}+\frac {25 \log \left (\tan ^{\frac {4}{3}}(c+d x)-\tan ^{\frac {2}{3}}(c+d x)+1\right )}{36 a^2 d}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2} \]

Antiderivative was successfully verified.

[In]

Int[1/(Tan[c + d*x]^(7/3)*(a + I*a*Tan[c + d*x])^2),x]

[Out]

(((-91*I)/72)*ArcTan[Sqrt[3] - 2*Tan[c + d*x]^(1/3)])/(a^2*d) + (((91*I)/72)*ArcTan[Sqrt[3] + 2*Tan[c + d*x]^(
1/3)])/(a^2*d) + (25*ArcTan[(1 - 2*Tan[c + d*x]^(2/3))/Sqrt[3]])/(6*Sqrt[3]*a^2*d) + (((91*I)/36)*ArcTan[Tan[c
 + d*x]^(1/3)])/(a^2*d) - (25*Log[1 + Tan[c + d*x]^(2/3)])/(18*a^2*d) + (((91*I)/48)*Log[1 - Sqrt[3]*Tan[c + d
*x]^(1/3) + Tan[c + d*x]^(2/3)])/(Sqrt[3]*a^2*d) - (((91*I)/48)*Log[1 + Sqrt[3]*Tan[c + d*x]^(1/3) + Tan[c + d
*x]^(2/3)])/(Sqrt[3]*a^2*d) + (25*Log[1 - Tan[c + d*x]^(2/3) + Tan[c + d*x]^(4/3)])/(36*a^2*d) - 25/(12*a^2*d*
Tan[c + d*x]^(4/3)) + 13/(12*a^2*d*(1 + I*Tan[c + d*x])*Tan[c + d*x]^(4/3)) + ((91*I)/12)/(a^2*d*Tan[c + d*x]^
(1/3)) + 1/(4*d*Tan[c + d*x]^(4/3)*(a + I*a*Tan[c + d*x])^2)

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 200

Int[((a_) + (b_.)*(x_)^3)^(-1), x_Symbol] :> Dist[1/(3*Rt[a, 3]^2), Int[1/(Rt[a, 3] + Rt[b, 3]*x), x], x] + Di
st[1/(3*Rt[a, 3]^2), Int[(2*Rt[a, 3] - Rt[b, 3]*x)/(Rt[a, 3]^2 - Rt[a, 3]*Rt[b, 3]*x + Rt[b, 3]^2*x^2), x], x]
 /; FreeQ[{a, b}, x]

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 204

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rule 275

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> With[{k = GCD[m + 1, n]}, Dist[1/k, Subst[Int[x^((m
 + 1)/k - 1)*(a + b*x^(n/k))^p, x], x, x^k], x] /; k != 1] /; FreeQ[{a, b, p}, x] && IGtQ[n, 0] && IntegerQ[m]

Rule 295

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Module[{r = Numerator[Rt[a/b, n]], s = Denominator[Rt[a/
b, n]], k, u}, Simp[u = Int[(r*Cos[((2*k - 1)*m*Pi)/n] - s*Cos[((2*k - 1)*(m + 1)*Pi)/n]*x)/(r^2 - 2*r*s*Cos[(
(2*k - 1)*Pi)/n]*x + s^2*x^2), x] + Int[(r*Cos[((2*k - 1)*m*Pi)/n] + s*Cos[((2*k - 1)*(m + 1)*Pi)/n]*x)/(r^2 +
 2*r*s*Cos[((2*k - 1)*Pi)/n]*x + s^2*x^2), x]; (2*(-1)^(m/2)*r^(m + 2)*Int[1/(r^2 + s^2*x^2), x])/(a*n*s^m) +
Dist[(2*r^(m + 1))/(a*n*s^m), Sum[u, {k, 1, (n - 2)/4}], x], x]] /; FreeQ[{a, b}, x] && IGtQ[(n - 2)/4, 0] &&
IGtQ[m, 0] && LtQ[m, n - 1] && PosQ[a/b]

Rule 329

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> With[{k = Denominator[m]}, Dist[k/c, Subst[I
nt[x^(k*(m + 1) - 1)*(a + (b*x^(k*n))/c^n)^p, x], x, (c*x)^(1/k)], x]] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0]
 && FractionQ[m] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 628

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[(d*Log[RemoveContent[a + b*x +
c*x^2, x]])/b, x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 634

Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Dist[(2*c*d - b*e)/(2*c), Int[1/(a +
 b*x + c*x^2), x], x] + Dist[e/(2*c), Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x] &
& NeQ[2*c*d - b*e, 0] && NeQ[b^2 - 4*a*c, 0] &&  !NiceSqrtQ[b^2 - 4*a*c]

Rule 3476

Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Dist[b/d, Subst[Int[x^n/(b^2 + x^2), x], x, b*Tan[c + d
*x]], x] /; FreeQ[{b, c, d, n}, x] &&  !IntegerQ[n]

Rule 3529

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[((
b*c - a*d)*(a + b*Tan[e + f*x])^(m + 1))/(f*(m + 1)*(a^2 + b^2)), x] + Dist[1/(a^2 + b^2), Int[(a + b*Tan[e +
f*x])^(m + 1)*Simp[a*c + b*d - (b*c - a*d)*Tan[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c
 - a*d, 0] && NeQ[a^2 + b^2, 0] && LtQ[m, -1]

Rule 3538

Int[((b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*T
an[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Tan[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x] && NeQ
[c^2 + d^2, 0] &&  !IntegerQ[2*m]

Rule 3559

Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim
p[(a*(a + b*Tan[e + f*x])^m*(c + d*Tan[e + f*x])^(n + 1))/(2*f*m*(b*c - a*d)), x] + Dist[1/(2*a*m*(b*c - a*d))
, Int[(a + b*Tan[e + f*x])^(m + 1)*(c + d*Tan[e + f*x])^n*Simp[b*c*m - a*d*(2*m + n + 1) + b*d*(m + n + 1)*Tan
[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 + b^2, 0] && NeQ[c^2
+ d^2, 0] && LtQ[m, 0] && (IntegerQ[m] || IntegersQ[2*m, 2*n])

Rule 3596

Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*tan[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*tan[(e_
.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[((a*A + b*B)*(a + b*Tan[e + f*x])^m*(c + d*Tan[e + f*x])^(n + 1))/(2
*f*m*(b*c - a*d)), x] + Dist[1/(2*a*m*(b*c - a*d)), Int[(a + b*Tan[e + f*x])^(m + 1)*(c + d*Tan[e + f*x])^n*Si
mp[A*(b*c*m - a*d*(2*m + n + 1)) + B*(a*c*m - b*d*(n + 1)) + d*(A*b - a*B)*(m + n + 1)*Tan[e + f*x], x], x], x
] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 + b^2, 0] && LtQ[m, 0] &&  !GtQ[n,
0]

Rubi steps

\begin {align*} \int \frac {1}{\tan ^{\frac {7}{3}}(c+d x) (a+i a \tan (c+d x))^2} \, dx &=\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {\int \frac {\frac {16 a}{3}-\frac {10}{3} i a \tan (c+d x)}{\tan ^{\frac {7}{3}}(c+d x) (a+i a \tan (c+d x))} \, dx}{4 a^2}\\ &=\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {\int \frac {\frac {200 a^2}{9}-\frac {182}{9} i a^2 \tan (c+d x)}{\tan ^{\frac {7}{3}}(c+d x)} \, dx}{8 a^4}\\ &=-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {\int \frac {-\frac {182 i a^2}{9}-\frac {200}{9} a^2 \tan (c+d x)}{\tan ^{\frac {4}{3}}(c+d x)} \, dx}{8 a^4}\\ &=-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {\int \frac {-\frac {200 a^2}{9}+\frac {182}{9} i a^2 \tan (c+d x)}{\sqrt [3]{\tan (c+d x)}} \, dx}{8 a^4}\\ &=-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {(91 i) \int \tan ^{\frac {2}{3}}(c+d x) \, dx}{36 a^2}-\frac {25 \int \frac {1}{\sqrt [3]{\tan (c+d x)}} \, dx}{9 a^2}\\ &=-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {(91 i) \operatorname {Subst}\left (\int \frac {x^{2/3}}{1+x^2} \, dx,x,\tan (c+d x)\right )}{36 a^2 d}-\frac {25 \operatorname {Subst}\left (\int \frac {1}{\sqrt [3]{x} \left (1+x^2\right )} \, dx,x,\tan (c+d x)\right )}{9 a^2 d}\\ &=-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {(91 i) \operatorname {Subst}\left (\int \frac {x^4}{1+x^6} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{12 a^2 d}-\frac {25 \operatorname {Subst}\left (\int \frac {x}{1+x^6} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{3 a^2 d}\\ &=-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {(91 i) \operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}+\frac {(91 i) \operatorname {Subst}\left (\int \frac {-\frac {1}{2}+\frac {\sqrt {3} x}{2}}{1-\sqrt {3} x+x^2} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}+\frac {(91 i) \operatorname {Subst}\left (\int \frac {-\frac {1}{2}-\frac {\sqrt {3} x}{2}}{1+\sqrt {3} x+x^2} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}-\frac {25 \operatorname {Subst}\left (\int \frac {1}{1+x^3} \, dx,x,\tan ^{\frac {2}{3}}(c+d x)\right )}{6 a^2 d}\\ &=\frac {91 i \tan ^{-1}\left (\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {(91 i) \operatorname {Subst}\left (\int \frac {1}{1-\sqrt {3} x+x^2} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{144 a^2 d}+\frac {(91 i) \operatorname {Subst}\left (\int \frac {1}{1+\sqrt {3} x+x^2} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{144 a^2 d}-\frac {25 \operatorname {Subst}\left (\int \frac {1}{1+x} \, dx,x,\tan ^{\frac {2}{3}}(c+d x)\right )}{18 a^2 d}-\frac {25 \operatorname {Subst}\left (\int \frac {2-x}{1-x+x^2} \, dx,x,\tan ^{\frac {2}{3}}(c+d x)\right )}{18 a^2 d}+\frac {(91 i) \operatorname {Subst}\left (\int \frac {-\sqrt {3}+2 x}{1-\sqrt {3} x+x^2} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{48 \sqrt {3} a^2 d}-\frac {(91 i) \operatorname {Subst}\left (\int \frac {\sqrt {3}+2 x}{1+\sqrt {3} x+x^2} \, dx,x,\sqrt [3]{\tan (c+d x)}\right )}{48 \sqrt {3} a^2 d}\\ &=\frac {91 i \tan ^{-1}\left (\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}-\frac {25 \log \left (1+\tan ^{\frac {2}{3}}(c+d x)\right )}{18 a^2 d}+\frac {91 i \log \left (1-\sqrt {3} \sqrt [3]{\tan (c+d x)}+\tan ^{\frac {2}{3}}(c+d x)\right )}{48 \sqrt {3} a^2 d}-\frac {91 i \log \left (1+\sqrt {3} \sqrt [3]{\tan (c+d x)}+\tan ^{\frac {2}{3}}(c+d x)\right )}{48 \sqrt {3} a^2 d}-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}-\frac {(91 i) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,-\sqrt {3}+2 \sqrt [3]{\tan (c+d x)}\right )}{72 a^2 d}-\frac {(91 i) \operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,\sqrt {3}+2 \sqrt [3]{\tan (c+d x)}\right )}{72 a^2 d}+\frac {25 \operatorname {Subst}\left (\int \frac {-1+2 x}{1-x+x^2} \, dx,x,\tan ^{\frac {2}{3}}(c+d x)\right )}{36 a^2 d}-\frac {25 \operatorname {Subst}\left (\int \frac {1}{1-x+x^2} \, dx,x,\tan ^{\frac {2}{3}}(c+d x)\right )}{12 a^2 d}\\ &=-\frac {91 i \tan ^{-1}\left (\sqrt {3}-2 \sqrt [3]{\tan (c+d x)}\right )}{72 a^2 d}+\frac {91 i \tan ^{-1}\left (\sqrt {3}+2 \sqrt [3]{\tan (c+d x)}\right )}{72 a^2 d}+\frac {91 i \tan ^{-1}\left (\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}-\frac {25 \log \left (1+\tan ^{\frac {2}{3}}(c+d x)\right )}{18 a^2 d}+\frac {91 i \log \left (1-\sqrt {3} \sqrt [3]{\tan (c+d x)}+\tan ^{\frac {2}{3}}(c+d x)\right )}{48 \sqrt {3} a^2 d}-\frac {91 i \log \left (1+\sqrt {3} \sqrt [3]{\tan (c+d x)}+\tan ^{\frac {2}{3}}(c+d x)\right )}{48 \sqrt {3} a^2 d}+\frac {25 \log \left (1-\tan ^{\frac {2}{3}}(c+d x)+\tan ^{\frac {4}{3}}(c+d x)\right )}{36 a^2 d}-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}+\frac {25 \operatorname {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,-1+2 \tan ^{\frac {2}{3}}(c+d x)\right )}{6 a^2 d}\\ &=-\frac {91 i \tan ^{-1}\left (\sqrt {3}-2 \sqrt [3]{\tan (c+d x)}\right )}{72 a^2 d}+\frac {91 i \tan ^{-1}\left (\sqrt {3}+2 \sqrt [3]{\tan (c+d x)}\right )}{72 a^2 d}+\frac {25 \tan ^{-1}\left (\frac {1-2 \tan ^{\frac {2}{3}}(c+d x)}{\sqrt {3}}\right )}{6 \sqrt {3} a^2 d}+\frac {91 i \tan ^{-1}\left (\sqrt [3]{\tan (c+d x)}\right )}{36 a^2 d}-\frac {25 \log \left (1+\tan ^{\frac {2}{3}}(c+d x)\right )}{18 a^2 d}+\frac {91 i \log \left (1-\sqrt {3} \sqrt [3]{\tan (c+d x)}+\tan ^{\frac {2}{3}}(c+d x)\right )}{48 \sqrt {3} a^2 d}-\frac {91 i \log \left (1+\sqrt {3} \sqrt [3]{\tan (c+d x)}+\tan ^{\frac {2}{3}}(c+d x)\right )}{48 \sqrt {3} a^2 d}+\frac {25 \log \left (1-\tan ^{\frac {2}{3}}(c+d x)+\tan ^{\frac {4}{3}}(c+d x)\right )}{36 a^2 d}-\frac {25}{12 a^2 d \tan ^{\frac {4}{3}}(c+d x)}+\frac {13}{12 a^2 d (1+i \tan (c+d x)) \tan ^{\frac {4}{3}}(c+d x)}+\frac {91 i}{12 a^2 d \sqrt [3]{\tan (c+d x)}}+\frac {1}{4 d \tan ^{\frac {4}{3}}(c+d x) (a+i a \tan (c+d x))^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 1.94, size = 281, normalized size = 0.74 \[ \frac {e^{-2 i (c+2 d x)} \left (9 \sqrt [3]{2} e^{4 i (c+d x)} \left (1+e^{2 i (c+d x)}\right )^{2/3} \left (-1+e^{2 i (c+d x)}\right )^2 \, _2F_1\left (\frac {2}{3},\frac {2}{3};\frac {5}{3};\frac {1}{2} \left (1-e^{2 i (c+d x)}\right )\right )+382 e^{4 i (c+d x)} \left (-1+e^{2 i (c+d x)}\right )^2 \, _2F_1\left (\frac {2}{3},1;\frac {5}{3};-\frac {-1+e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}\right )+76 e^{2 i (c+d x)}-736 e^{4 i (c+d x)}-220 e^{6 i (c+d x)}+586 e^{8 i (c+d x)}+6\right ) \tan ^{\frac {2}{3}}(c+d x) \sec ^2(c+d x) (\cos (d x)+i \sin (d x))^2}{96 a^2 d \left (-1+e^{2 i (c+d x)}\right )^2 (\tan (c+d x)-i)^2} \]

Antiderivative was successfully verified.

[In]

Integrate[1/(Tan[c + d*x]^(7/3)*(a + I*a*Tan[c + d*x])^2),x]

[Out]

((6 + 76*E^((2*I)*(c + d*x)) - 736*E^((4*I)*(c + d*x)) - 220*E^((6*I)*(c + d*x)) + 586*E^((8*I)*(c + d*x)) + 9
*2^(1/3)*E^((4*I)*(c + d*x))*(-1 + E^((2*I)*(c + d*x)))^2*(1 + E^((2*I)*(c + d*x)))^(2/3)*Hypergeometric2F1[2/
3, 2/3, 5/3, (1 - E^((2*I)*(c + d*x)))/2] + 382*E^((4*I)*(c + d*x))*(-1 + E^((2*I)*(c + d*x)))^2*Hypergeometri
c2F1[2/3, 1, 5/3, -((-1 + E^((2*I)*(c + d*x)))/(1 + E^((2*I)*(c + d*x))))])*Sec[c + d*x]^2*(Cos[d*x] + I*Sin[d
*x])^2*Tan[c + d*x]^(2/3))/(96*a^2*d*E^((2*I)*(c + 2*d*x))*(-1 + E^((2*I)*(c + d*x)))^2*(-I + Tan[c + d*x])^2)

________________________________________________________________________________________

fricas [B]  time = 0.95, size = 832, normalized size = 2.18 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/tan(d*x+c)^(7/3)/(a+I*a*tan(d*x+c))^2,x, algorithm="fricas")

[Out]

1/3456*(3*(sqrt(3)*(72*I*a^2*d*e^(8*I*d*x + 8*I*c) - 144*I*a^2*d*e^(6*I*d*x + 6*I*c) + 72*I*a^2*d*e^(4*I*d*x +
 4*I*c))*sqrt(1/(a^4*d^2)) + 72*e^(8*I*d*x + 8*I*c) - 144*e^(6*I*d*x + 6*I*c) + 72*e^(4*I*d*x + 4*I*c))*log(1/
2*sqrt(3)*a^2*d*sqrt(1/(a^4*d^2)) + ((-I*e^(2*I*d*x + 2*I*c) + I)/(e^(2*I*d*x + 2*I*c) + 1))^(1/3) + 1/2*I) +
3*(sqrt(3)*(-72*I*a^2*d*e^(8*I*d*x + 8*I*c) + 144*I*a^2*d*e^(6*I*d*x + 6*I*c) - 72*I*a^2*d*e^(4*I*d*x + 4*I*c)
)*sqrt(1/(a^4*d^2)) + 72*e^(8*I*d*x + 8*I*c) - 144*e^(6*I*d*x + 6*I*c) + 72*e^(4*I*d*x + 4*I*c))*log(-1/2*sqrt
(3)*a^2*d*sqrt(1/(a^4*d^2)) + ((-I*e^(2*I*d*x + 2*I*c) + I)/(e^(2*I*d*x + 2*I*c) + 1))^(1/3) + 1/2*I) + (sqrt(
1/3)*(-13752*I*a^2*d*e^(8*I*d*x + 8*I*c) + 27504*I*a^2*d*e^(6*I*d*x + 6*I*c) - 13752*I*a^2*d*e^(4*I*d*x + 4*I*
c))*sqrt(1/(a^4*d^2)) + 4584*e^(8*I*d*x + 8*I*c) - 9168*e^(6*I*d*x + 6*I*c) + 4584*e^(4*I*d*x + 4*I*c))*log(3/
2*sqrt(1/3)*a^2*d*sqrt(1/(a^4*d^2)) + ((-I*e^(2*I*d*x + 2*I*c) + I)/(e^(2*I*d*x + 2*I*c) + 1))^(1/3) - 1/2*I)
+ (sqrt(1/3)*(13752*I*a^2*d*e^(8*I*d*x + 8*I*c) - 27504*I*a^2*d*e^(6*I*d*x + 6*I*c) + 13752*I*a^2*d*e^(4*I*d*x
 + 4*I*c))*sqrt(1/(a^4*d^2)) + 4584*e^(8*I*d*x + 8*I*c) - 9168*e^(6*I*d*x + 6*I*c) + 4584*e^(4*I*d*x + 4*I*c))
*log(-3/2*sqrt(1/3)*a^2*d*sqrt(1/(a^4*d^2)) + ((-I*e^(2*I*d*x + 2*I*c) + I)/(e^(2*I*d*x + 2*I*c) + 1))^(1/3) -
 1/2*I) - 9168*(e^(8*I*d*x + 8*I*c) - 2*e^(6*I*d*x + 6*I*c) + e^(4*I*d*x + 4*I*c))*log(((-I*e^(2*I*d*x + 2*I*c
) + I)/(e^(2*I*d*x + 2*I*c) + 1))^(1/3) + I) - 432*(e^(8*I*d*x + 8*I*c) - 2*e^(6*I*d*x + 6*I*c) + e^(4*I*d*x +
 4*I*c))*log(((-I*e^(2*I*d*x + 2*I*c) + I)/(e^(2*I*d*x + 2*I*c) + 1))^(1/3) - I) - 72*((-I*e^(2*I*d*x + 2*I*c)
 + I)/(e^(2*I*d*x + 2*I*c) + 1))^(2/3)*(293*e^(8*I*d*x + 8*I*c) - 110*e^(6*I*d*x + 6*I*c) - 368*e^(4*I*d*x + 4
*I*c) + 38*e^(2*I*d*x + 2*I*c) + 3))/(a^2*d*e^(8*I*d*x + 8*I*c) - 2*a^2*d*e^(6*I*d*x + 6*I*c) + a^2*d*e^(4*I*d
*x + 4*I*c))

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2} \tan \left (d x + c\right )^{\frac {7}{3}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/tan(d*x+c)^(7/3)/(a+I*a*tan(d*x+c))^2,x, algorithm="giac")

[Out]

integrate(1/((I*a*tan(d*x + c) + a)^2*tan(d*x + c)^(7/3)), x)

________________________________________________________________________________________

maple [A]  time = 0.29, size = 388, normalized size = 1.02 \[ \frac {19 i}{36 d \,a^{2} \left (\tan ^{\frac {1}{3}}\left (d x +c \right )+i\right )}-\frac {1}{36 d \,a^{2} \left (\tan ^{\frac {1}{3}}\left (d x +c \right )+i\right )^{2}}-\frac {191 \ln \left (\tan ^{\frac {1}{3}}\left (d x +c \right )+i\right )}{72 d \,a^{2}}+\frac {\ln \left (i \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )+\tan ^{\frac {2}{3}}\left (d x +c \right )-1\right )}{16 d \,a^{2}}+\frac {i \sqrt {3}\, \arctanh \left (\frac {\left (i+2 \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )\right ) \sqrt {3}}{3}\right )}{8 d \,a^{2}}-\frac {3}{4 a^{2} d \tan \left (d x +c \right )^{\frac {4}{3}}}+\frac {6 i}{d \,a^{2} \tan \left (d x +c \right )^{\frac {1}{3}}}+\frac {29 \left (\tan ^{\frac {2}{3}}\left (d x +c \right )\right )}{18 d \,a^{2} \left (-i \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )+\tan ^{\frac {2}{3}}\left (d x +c \right )-1\right )^{2}}-\frac {61 i \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )}{36 d \,a^{2} \left (-i \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )+\tan ^{\frac {2}{3}}\left (d x +c \right )-1\right )^{2}}+\frac {19 i \tan \left (d x +c \right )}{18 d \,a^{2} \left (-i \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )+\tan ^{\frac {2}{3}}\left (d x +c \right )-1\right )^{2}}-\frac {5}{9 d \,a^{2} \left (-i \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )+\tan ^{\frac {2}{3}}\left (d x +c \right )-1\right )^{2}}+\frac {191 \ln \left (-i \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )+\tan ^{\frac {2}{3}}\left (d x +c \right )-1\right )}{144 d \,a^{2}}-\frac {191 i \sqrt {3}\, \arctanh \left (\frac {\left (-i+2 \left (\tan ^{\frac {1}{3}}\left (d x +c \right )\right )\right ) \sqrt {3}}{3}\right )}{72 d \,a^{2}}-\frac {\ln \left (\tan ^{\frac {1}{3}}\left (d x +c \right )-i\right )}{8 d \,a^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/tan(d*x+c)^(7/3)/(a+I*a*tan(d*x+c))^2,x)

[Out]

19/36*I/d/a^2/(tan(d*x+c)^(1/3)+I)-1/36/d/a^2/(tan(d*x+c)^(1/3)+I)^2-191/72/d/a^2*ln(tan(d*x+c)^(1/3)+I)+1/16/
d/a^2*ln(I*tan(d*x+c)^(1/3)+tan(d*x+c)^(2/3)-1)+1/8*I/d/a^2*3^(1/2)*arctanh(1/3*(I+2*tan(d*x+c)^(1/3))*3^(1/2)
)-3/4/a^2/d/tan(d*x+c)^(4/3)+6*I/d/a^2/tan(d*x+c)^(1/3)+29/18/d/a^2/(-I*tan(d*x+c)^(1/3)+tan(d*x+c)^(2/3)-1)^2
*tan(d*x+c)^(2/3)-61/36*I/d/a^2/(-I*tan(d*x+c)^(1/3)+tan(d*x+c)^(2/3)-1)^2*tan(d*x+c)^(1/3)+19/18*I/d/a^2/(-I*
tan(d*x+c)^(1/3)+tan(d*x+c)^(2/3)-1)^2*tan(d*x+c)-5/9/d/a^2/(-I*tan(d*x+c)^(1/3)+tan(d*x+c)^(2/3)-1)^2+191/144
/d/a^2*ln(-I*tan(d*x+c)^(1/3)+tan(d*x+c)^(2/3)-1)-191/72*I/d/a^2*3^(1/2)*arctanh(1/3*(-I+2*tan(d*x+c)^(1/3))*3
^(1/2))-1/8/d/a^2*ln(tan(d*x+c)^(1/3)-I)

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/tan(d*x+c)^(7/3)/(a+I*a*tan(d*x+c))^2,x, algorithm="maxima")

[Out]

Exception raised: RuntimeError >> ECL says: Error executing code in Maxima: expt: undefined: 0 to a negative e
xponent.

________________________________________________________________________________________

mupad [B]  time = 5.46, size = 652, normalized size = 1.71 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(tan(c + d*x)^(7/3)*(a + a*tan(c + d*x)*1i)^2),x)

[Out]

(191*log((14592400*a^2*d*tan(c + d*x)^(1/3))/3 - (36481*((a^6*d^3*891794176i)/3 - (893867776*a^8*d^4*tan(c + d
*x)^(1/3)*(-1/(a^6*d^3))^(1/3))/3)*(-1/(a^6*d^3))^(2/3))/5184)*(-1/(a^6*d^3))^(1/3))/72 + (3i/(4*a^2*d) + (9*t
an(c + d*x))/(2*a^2*d) + (tan(c + d*x)^2*157i)/(12*a^2*d) - (91*tan(c + d*x)^3)/(12*a^2*d))/(2*tan(c + d*x)^(7
/3) - tan(c + d*x)^(4/3)*1i + tan(c + d*x)^(10/3)*1i) + log((14592400*a^2*d*tan(c + d*x)^(1/3))/3 - ((a^6*d^3*
891794176i)/3 - 112318464*a^8*d^4*tan(c + d*x)^(1/3)*(-1/(512*a^6*d^3))^(1/3))*(-1/(512*a^6*d^3))^(2/3))*(-1/(
512*a^6*d^3))^(1/3) + log((14592400*a^2*d*tan(c + d*x)^(1/3))/3 - ((3^(1/2)*1i)/2 - 1/2)^2*((a^6*d^3*891794176
i)/3 - 112318464*a^8*d^4*tan(c + d*x)^(1/3)*((3^(1/2)*1i)/2 - 1/2)*(-1/(512*a^6*d^3))^(1/3))*(-1/(512*a^6*d^3)
)^(2/3))*((3^(1/2)*1i)/2 - 1/2)*(-1/(512*a^6*d^3))^(1/3) - log((14592400*a^2*d*tan(c + d*x)^(1/3))/3 - ((3^(1/
2)*1i)/2 + 1/2)^2*((a^6*d^3*891794176i)/3 + 112318464*a^8*d^4*tan(c + d*x)^(1/3)*((3^(1/2)*1i)/2 + 1/2)*(-1/(5
12*a^6*d^3))^(1/3))*(-1/(512*a^6*d^3))^(2/3))*((3^(1/2)*1i)/2 + 1/2)*(-1/(512*a^6*d^3))^(1/3) + (191*log((1459
2400*a^2*d*tan(c + d*x)^(1/3))/3 - (36481*(3^(1/2)*1i - 1)^2*((a^6*d^3*891794176i)/3 - (446933888*a^8*d^4*tan(
c + d*x)^(1/3)*(3^(1/2)*1i - 1)*(-1/(a^6*d^3))^(1/3))/3)*(-1/(a^6*d^3))^(2/3))/20736)*(3^(1/2)*1i - 1)*(-1/(a^
6*d^3))^(1/3))/144 - (191*log((14592400*a^2*d*tan(c + d*x)^(1/3))/3 - (36481*(3^(1/2)*1i + 1)^2*((a^6*d^3*8917
94176i)/3 + (446933888*a^8*d^4*tan(c + d*x)^(1/3)*(3^(1/2)*1i + 1)*(-1/(a^6*d^3))^(1/3))/3)*(-1/(a^6*d^3))^(2/
3))/20736)*(3^(1/2)*1i + 1)*(-1/(a^6*d^3))^(1/3))/144

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {\int \frac {1}{\tan ^{\frac {13}{3}}{\left (c + d x \right )} - 2 i \tan ^{\frac {10}{3}}{\left (c + d x \right )} - \tan ^{\frac {7}{3}}{\left (c + d x \right )}}\, dx}{a^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/tan(d*x+c)**(7/3)/(a+I*a*tan(d*x+c))**2,x)

[Out]

-Integral(1/(tan(c + d*x)**(13/3) - 2*I*tan(c + d*x)**(10/3) - tan(c + d*x)**(7/3)), x)/a**2

________________________________________________________________________________________